package org.service.car.pojo;

import com.j256.ormlite.field.DataType;
import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

@DatabaseTable(tableName = "CONFIG")
public class Config {
	
	@DatabaseField(generatedId = true)
	private int id;
	
	@DatabaseField(canBeNull = false, columnName = "notificacoes", dataType = DataType.BOOLEAN)
	private boolean notificacoes;
	
	@DatabaseField(canBeNull = false, columnName = "kmPerimetro", dataType = DataType.INTEGER)
	private int kmPerimetro;
	
	
	public Config(){}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public boolean getNotificacoes() {
		return notificacoes;
	}

	public void setNotificacoes(boolean notificacoes) {
		this.notificacoes = notificacoes;
	}
	
	public int getKmPerimetro() {
		return kmPerimetro;
	}

	public void setKmPerimetro(int kmPerimetro) {
		this.kmPerimetro = kmPerimetro;
	}	
	
	@Override
	public String toString() {
		return String.valueOf(notificacoes);
	}
}